<?php
/**
 * User: aka
 * Time: 1:17
 */

namespace app\tenno\behavior;

use app\tenno\model\Users;
use think\facade\Session;

class GetUserCount
{
    public function run($params)
    {
        $condition = array();
        $condition['delete_state'] = 0;
        $userCount = Users::where($condition)->count();
        Session::set('user_count', $userCount);
    }
}